Django tutorial

by: priya18, 8 years ago

Last edited: 8 years ago

Hi all, i am following django tutorials , and working on some self project i have found this error and not able to rectify, as the code was working properly before.

Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/family.html/
Using the URLconf defined in tutorial.urls, Django tried these URL patterns, in this order:
^admin/
^ ^$ [name='index']
^ ^family.html/ [name='family']
^ ^hobby.html/ [name='intrest']
^ ^edu.html/ [name='edu']
^ ^hometown.html/ [name='hometown']
^ ^fun.html/ [name='fun']
^ ^contact.html/ [name='contact']
The current URL, family.html/, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

please help me out if i made any mistake, as i am not able to recognise. Thank you all



You must be logged in to post. Please login or register an account.



A 404 means page not found, by searching for the url path. Django has all of your urls in urls.py files. None of your patterns in the urls.py files matched what you typed in. Curiously, why are you typing in .html and all that? why would you want to be using .html in your filenames? I am wondering if you maybe skipped around in the series or something and are possibly confused about how to call up your html files. If you are skipping about, I suggest you start at the beginning.

-Harrison 8 years ago

You must be logged in to post. Please login or register an account.